package com.evaluationsystem.system.controller;

import com.evaluationsystem.system.serivce.AssessInQuiryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Controller
@RequestMapping("AssessInQuiry")
@Api(tags = "考核情况",value = "2020-4-21-gdy")
public class AssessInQuiryController {

    @Autowired
    AssessInQuiryService service;

    @GetMapping("")
    @ApiOperation(value = "考核情况 页面跳转 ",notes = "2020-4-21-gdy")
    public String AssessStatisticalhtml(){
        return "system/assessInQuiry/assessInQuiry";
    }


    @ResponseBody
    @ApiOperation(value = "考核情况的员工 Table 数据 接口",notes = "2020-4-21-gdy")
    @ApiImplicitParam(name = "param",value = "{page=1, limit=10}",required = true,paramType = "json")
    @PostMapping("assessInQuiryTableDatas")
    public Map<String,Object> assessInQuiryTableDatas(@RequestBody Map<String,Object> param){
        Map<String,Object> res = service.assessInQuiryTableDatas(param);
        return res;
    }

    @ResponseBody
    @ApiOperation(value = "考核情况的员工 Table 数据 接口",notes = "2020-4-21-gdy")
    @ApiImplicitParam(name = "param",value = "{vselfappmonth,vteamappmonth,vcustomerappmonth,vgroupappmonth,checkbox=checkboxFArr}",required = false,paramType = "json")
    @PostMapping("notification")
    public Map<String,Object> notification(@RequestBody Map<String,Object> param){
        Map<String,Object> res = service.notification(param);
        return res;
    }

}
